IA64: Rationalize VMM mode alignment checking
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 3 Dec 2008 02:43:54 +0000 (11:43 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 3 Dec 2008 02:43:54 +0000 (11:43 +0900)
commit180038d2a4778491b333994c5085b98fce02e5ca
tree1150f315fa154926fe54ac15e3eeac0f3164e3eb
parent5fb5ca3d1ba094cc15a17d8f835d4a148985bf00
IA64: Rationalize VMM mode alignment checking

This is the xen port of ia64 linux chageset of
b704882e70d87d7f56db5ff17e2253f3fa90e4f3

    [IA64] Rationalize kernel mode alignment checking

    Itanium processors can handle some misaligned data accesses. They
    also provide a mode where all such accesses are forced to trap. The
    kernel was schizophrenic about use of this mode:

    * Base kernel code ran in permissive mode where the only traps
      generated were from those cases that the h/w could not handle.
    * Interrupt, syscall and trap code ran in strict mode where all
      unaligned accesses caused traps to the 0x5a00 unaligned reference
      vector.

    Use strict alignment checking throughout the kernel, but make
    sure that we continue to let user mode use more relaxed mode
    as the default.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/linux-xen/head.S